bufio.Reader.w (field)
31 uses
bufio (current package)
bufio.go#L35: r, w int // buf read and write positions
bufio.go#L99: copy(b.buf, b.buf[b.r:b.w])
bufio.go#L100: b.w -= b.r
bufio.go#L104: if b.w >= len(b.buf) {
bufio.go#L110: n, err := b.rd.Read(b.buf[b.w:])
bufio.go#L114: b.w += n
bufio.go#L147: for b.w-b.r < n && b.w-b.r < len(b.buf) && b.err == nil {
bufio.go#L152: return b.buf[b.r:b.w], ErrBufferFull
bufio.go#L157: if avail := b.w - b.r; avail < n {
bufio.go#L220: if b.r == b.w {
bufio.go#L240: b.w = 0
bufio.go#L248: b.w += n
bufio.go#L254: n = copy(p, b.buf[b.r:b.w])
bufio.go#L265: for b.r == b.w {
bufio.go#L283: if b.lastByte < 0 || b.r == 0 && b.w > 0 {
bufio.go#L291: b.w = 1
bufio.go#L303: for b.r+utf8.UTFMax > b.w && !utf8.FullRune(b.buf[b.r:b.w]) && b.err == nil && b.w-b.r < len(b.buf) {
bufio.go#L307: if b.r == b.w {
bufio.go#L312: r, size = utf8.DecodeRune(b.buf[b.r:b.w])
bufio.go#L335: func (b *Reader) Buffered() int { return b.w - b.r }
bufio.go#L351: if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
bufio.go#L360: line = b.buf[b.r:b.w]
bufio.go#L361: b.r = b.w
bufio.go#L368: b.r = b.w
bufio.go#L374: s = b.w - b.r // do not rescan area we scanned before
bufio.go#L535: if b.w-b.r < len(b.buf) {
bufio.go#L539: for b.r < b.w {
bufio.go#L560: n, err := w.Write(b.buf[b.r:b.w])
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |